package neuralModel.activationFunction;

public class SigmoidActivationFunction implements IActivationFunction
{

	public SigmoidActivationFunction()
	{
	}

	@Override
	public double calculateOutputValue(double inducedLocalField)
	{
		return 1.0 / (1.0 + Math.exp(-inducedLocalField));
	}

	@Override
	public double calculateDerivative(double inducedLocalField)
	{
		double value = calculateOutputValue(inducedLocalField);
		return value - (value * value);
	}
}
